package com.fyx.entity;

import com.fyx.annotation.Query;
import lombok.Data;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;


import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@Document(collection="order")
public class OrderEntity {
    private String _id;

    private String agent_id;

    private String agent_manager_id;

    private String agent_name;

    @Transient
    private int Charge_id;

    private String out_trade_no;

    private String pid;

    private String p_nickname;

    private Integer time_end;

    private String os;

    private Integer total_fee;
    @Transient
    private long total_fee1;
    @Transient
    private long total_fee2;

    private  Integer mall_id;

    @Transient
    private  String propId;

    @Transient
    private  String propName;

   // @Transient
    private int totalFee;

    private String transaction_id;

  //  @Transient
    private Long count;

    @Transient
    private Long deptId;

    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    @Transient
    private Set<Long> deptIds = new HashSet<>();

    @Transient
    private List<Timestamp> qTime;

    @Transient
    private long reg_time;

    @Transient
    private long last_time;

    @Transient
    private long all_fee;

    @Transient
    private long all_fee1;

    @Transient
    private long all_fee2;

    private String platform;


    private String channel;

    @Transient
    private Map orderUser;

    @Transient
    private long total;

    @Transient
    private String flag;
}
